
<%@page import="com.crm.user.model.UserAccount"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
 		<%@ include file="/WEB-INF/page/public/taglib.jsp"%>
 	<%-- 	 <%
		UserAccount  user = (UserAccount)request.getSession().getAttribute("user");
		request.setAttribute("user", user);
		%> --%>
<!DOCTYPE html>
<html>
  <head>
  	 <title>crm系统首页</title>
	 <%@ include file="/WEB-INF/page/mobile/public/meta.jsp"%>
  </head>
  <body>
    <div class="statusbar-overlay"></div>
    <!-- Panels overlay-->
    <div class="panel-overlay"></div>
    <!-- Left panel with reveal effect-->
    <div class="panel panel-left panel-reveal">
      <div class="content-block">
        <p>Left panel content goes here</p>
      </div>
    </div>
    <!-- Right panel with cover effect-->
    <div class="panel panel-right panel-cover">
      <div class="content-block">
        <p>Right panel content goes here</p>
      </div>
    </div>
    <!-- Views-->
    <div class="views">
      <!-- Your main view, should have "view-main" class-->
      <div class="view view-main">
    
         <!-- 导航栏-->
        <div class="navbar navbar-top">
          <div class="navbar-inner" data-page="index">
            <!-- We have home navbar without left link-->
           <div class="left">
              <a href="#" class="link icon-only icon-baocun"><i class="f7-icons color-white f7-right">person</i>${user.info.name}</a>
            </div>
           <div class="context sliding">CRM管理系统</div>
            <div class="right">
            	<a href="#tab2" class="tab-link">
			        <i class="f7-icons color-white">email_fill
			            <span class="badge bg-red badgee">5</span>
			        </i>
			    </a>
            </div>
          </div>
          
          <c:forEach items="${menuobj}" var="menu" >
			     
			     	  <div class="navbar-inner cached" data-page="index${menu.id}">
			           <div class="left">
			              <a href="#"  class="back link icon-only"><i class="f7-icons color-white">arrow_left_fill</i></a>
			            </div>
			           <div class="context sliding">${menu.name}</div>
			            <div class="right">
			            </div>
			         </div>  
			</c:forEach> 
        </div>
    
        <!-- 视图栏-->
        <div class="pages  navbar-through">
          <!-- Page, data-page contains page name-->
          <div data-page="index" class="page  navbar-fixed toolbar-fixed">
        
            <!--弹框-->
            <div class="page-content">  
            	<!--bannar-->
            	<div class="index-ban">
            		<img src="/images/mobile/index.png" />
            	</div>
              	<!--消息提醒-->
              	<div class="index-new">
              		<div class="index-new-area">
              			<p></p><p>恭喜程芬以<span>750.0</span>元签下<span>叶明敏</span></p><p></p>
              		</div>
              	</div>
              	<!--菜单按钮-->
              	<div class="index-button">
              		<div class="index-butt">
              			<div class="button-list">
              				<ul>
              					<c:forEach items="${menuobj}" var="menu" >
              					     	<li>
		              						<a href="#index${menu.id}">
		              							<p class="${menu.remark}"></p>
		              							<p class="but-algin">${menu.name}</p>
		              						</a>
		              					</li> 
              					     
              					</c:forEach>
              					 
              				</ul>
              			</div>
              			<div class="button-time">
              				<div class="but-time">
              					<p class="but-time-one"></p><p>预约提醒</p><p></p><p>您有<span>1</span>条新消息</p>
              				</div>
              			</div>
              			<div class="button-time">
              				<div class="but-time">
              					<p class="but-time-two"></p><p>预约提醒</p><p></p><p>您有<span>1</span>条新消息</p>
              				</div>
              			</div>
              		</div>
              	</div>
            </div>
          </div>  
           
             <c:forEach items="${menuobj}" var="menu" >
			     
			     	     <div data-page="index${menu.id}"  class="page cached" >
				            <div class="page-content"> 
				               <c:forEach items="${menu.subList}" var="menusub" varStatus="c">
				               		  
				               			<div class="relation <c:if test="${c.index==0 }">relation-top</c:if>">
											<a href="/m${menusub.url}">
												<p>${menusub.name}</p>
												<p></p>
											</a>
										</div>  
				               </c:forEach> 
				            </div>
				          </div> 
			     
			</c:forEach> 
        </div>
       <!-- 标签栏-->
         <%@ include file="/WEB-INF/page/mobile/public/menu.jsp"%>
      </div>
      
      
      
      
      
      
      
      
      
      
      
      
      
 
   
      
      
      
    </div>
  <%@ include file="/WEB-INF/page/mobile/public/foot.jsp"%>
  </body>
</html>